package com.lse_api.utils;

/**
 * uuid 获取
 *
 * @author 祁雪
 */
public class UUID {

    public static String getUUIDToStr() {
        return getUUIDByRegex("-");
    }

    public static String getUUIDByRegex(String regex) {
        return java.util.UUID.randomUUID().toString().replaceAll(regex, "");
    }

    public static void main(String[] args) {

        for (int i = 0; i < 50; i++) {
            System.out.println(getUUIDByRegex("-"));
        }

    }

}
